package com.sccba.uop.demo.util;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/**
 * 日期时间工具
 */
public class DateUtils {

    public static LocalDateTime now() {
        return LocalDateTime.now();
    }

    public static String getTimestamp() {
        LocalDateTime now = now();
        return now.format(DateTimeFormatter.ofPattern("yyyyMMddHHmmssSSS"));
    }

    public static long getMillisTimestamp() {
        return System.currentTimeMillis();
    }

}
